package com.vcredit.creditcat.model;

import java.io.Serializable;

/**
 * 
 **/
public class Relative implements Serializable{
	private static final long serialVersionUID = 3095579333964668190L;
	/**  **/
    private java.lang.Long relationId;
    /**  **/
    private java.lang.Long thirdCustId;
    /**  **/
    private java.lang.Long processId;
    /**  **/
    private java.lang.Integer relation;
    /**  **/
    private java.lang.String relationName;
    /**  **/
    private java.lang.String relationMobile;
    /**  **/
    private java.util.Date createTime;
    /**  **/
    private java.util.Date updateTime;
    /**  **/
    private java.lang.Integer relationType;
    
    public Relative() {
		super();
		
	}

	public Relative(Long thirdCustId, Long processId, String relationName, 
			String relationMobile, Integer relation,Integer relationType) {
		super();
		this.thirdCustId = thirdCustId;
		this.processId = processId;
		this.relation = relation;
		this.relationName = relationName;
		this.relationMobile = relationMobile;
		this.relationType = relationType;
	}

	public java.lang.Long getRelationId(){
        return relationId;
    }
    public void setRelationId(java.lang.Long relationId){
        this.relationId = relationId;
    }
    public java.lang.Long getThirdCustId(){
        return thirdCustId;
    }
    public void setThirdCustId(java.lang.Long thirdCustId){
        this.thirdCustId = thirdCustId;
    }
    public java.lang.Long getProcessId(){
        return processId;
    }
    public void setProcessId(java.lang.Long processId){
        this.processId = processId;
    }
    public java.lang.Integer getRelation(){
        return relation;
    }
    public void setRelation(java.lang.Integer relation){
        this.relation = relation;
    }
    public java.lang.String getRelationName(){
        return relationName;
    }
    public void setRelationName(java.lang.String relationName){
        this.relationName = relationName;
    }
    public java.lang.String getRelationMobile(){
        return relationMobile;
    }
    public void setRelationMobile(java.lang.String relationMobile){
        this.relationMobile = relationMobile;
    }
    public java.util.Date getCreateTime(){
        return createTime;
    }
    public void setCreateTime(java.util.Date createTime){
        this.createTime = createTime;
    }
    public java.util.Date getUpdateTime(){
        return updateTime;
    }
    public void setUpdateTime(java.util.Date updateTime){
        this.updateTime = updateTime;
    }
    public java.lang.Integer getRelationType(){
        return relationType;
    }
    public void setRelationType(java.lang.Integer relationType){
        this.relationType = relationType;
    }
    
    @Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Relative))return false;
		return obj.hashCode()==this.hashCode();
	}
    
	@Override
	public int hashCode() {
		return (getThirdCustId()+"_"+getRelationMobile()).hashCode();
	}
}